﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace GarageManagement.Models
{
    public class Customer
    {
        public int CustomerId { get; set; }
        [StringLength(10)]
        public string Code { get; set; }
        [StringLength(1024)]
        public string ContactName { get; set; }
        [StringLength(1024)]
        public string Address { get; set; }
        [StringLength(1024)]
        public string City { get; set; }
        [StringLength(255)]
        public string Telephone { get; set; }
        [StringLength(255)]
        public string MobilePhone { get; set; }
        [StringLength(255)]
        public string Fax { get; set; }
        [StringLength(255)]
        public string Email { get; set; }
        [ForeignKey("CustomerType")]
        public int CustomerTypeId { get; set; }
        public virtual CustomerType CustomerType { get; set; }
    }
}
